package com.hhw.demoweb.user;



import com.hhw.demodao.entity.SysUser;
import com.hhw.demoservice.user.SysUserService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * 用户信息表(SysUser)表控制层
 *
 * @author makejava
 * @since 2024-09-07 16:56:50
 */
@RestController
@RequestMapping("sysUser")
public class SysUserController {
    /**
     * 服务对象 
     */
    @Resource
    private SysUserService sysUserService;

    @GetMapping("/getuser")
    public SysUser selectOne() {
        int id = 2;
        return this.sysUserService.getUserById(id);
    }

}

